{gtsummary} has become my preferred way of creating tables of all types. It’s highly customizable and can almost always get the exact output I’m looking for. It’s based of the {gt} package for creating tables, so can be even more customizable. It also includes functions for pulling out numbers from the tables to report in the text.
Open the slides in a new tab here.
Download the slides as a new pdf here.
tbl_summary(). Include (at least) number of hours of sleep on weekdays and weekends, categorical region, and income and make sure they are nicely labeled. Play around with the extra functions from the examples and/or from the documentation{gtsummary} documentation{gt} documentation{flextable} documentation{gtExtras} documentation